<template>
  <div class="services">
    <div class="services-item"
         v-for="(item, index) in goods"
         :key="index"><img :src="item.icon" alt="">{{item.name}}</div>
  </div>
</template>

<script>
export default {
  name: "GoodsService",
  props: {
    goods: {
      type: Array,
      default() {
        return []
      }
    }
  }
}
</script>

<style scoped>
  .services {
    display: flex;
    flex-wrap: wrap;
  }
  .services-item {
    width: 33.3%;
    margin: 5px 0;
  }
  .services-item img {
    width: 14px;
    height: 14px;
    vertical-align: middle;
  }
  .services-item:nth-child(2),
  .services-item:nth-child(5){
    text-align: center;
  }
  .services-item:nth-child(3),
  .services-item:nth-child(6){
    text-align: right;
  }
</style>